import store from "@/store"

export default (attr,id)=>{
  let props = {}
  for(let i of attr){
    props[i.name] = i.value
  }
  store.dispatch("drawing/changeContent",{attr,id})
  return props
}